<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Admin\BaseApiController;
use Illuminate\Http\Request;
use App\Http\Requests\Auth\LoginRequest;
use App\Models\User;

class LoginController extends BaseApiController
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function login(LoginRequest $request)
    {

        $input = $request->only(['username', 'password']);
        dd($input);
      	return (new User())->index($request->all());
    }
}
